<!DOCTYPE html>
<html lang="en">
    <head>
        <meta charset="UTF-8" />
        <meta name="viewport" content="width=device-width, initial-scale=1.0" />
        <title>Document</title>
    </head>
    <body>
        <canvas id="c" width="400" height="400" style="border: 1px solid #ccc"></canvas>

        <script>
            const context = document.getElementById('c')
            const ctx = context.getContext('2d')

            // 第一条线，粉色
            ctx.moveTo(50, 40)
            ctx.lineTo(150, 40)
            ctx.lineTo(150, 70)
            ctx.strokeStyle = 'pink' // 粉色描边
            ctx.stroke()
            ctx.closePath()

            // ctx.beginPath()

            // // 圆形
            // ctx.arc(150, 120, 40, 0, (360 * Math.PI) / 180)
            // ctx.lineWidth = 4
            // ctx.stroke()
        </script>
    </body>
</html>
